home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2003-02-25 | 1.6 KB | [TEXT/□□□□] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Feb 25 15:43:11 2003, modified Tue Feb 25 15:43:11 2003, type ASCII, 1122 bytes "SETI@Home.py"
| default (weak)
| |
99%
| file
| a python script executable (binary data)
| default (weak)
| |
98%
| file
| a /usr/bin/env python script executable (binary data), at 0x4e2 286 bytes resource
| default (weak)
| |
97%
| file
| a /usr/bin/env python script executable (binary data)
| default (weak)
| |
96%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [□□□□] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 53 45 54 49 40 48 | 6f 6d 65 2e 70 79 00 00 |..SETI@H|ome.py..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 00 00 00 | 00 00 00 00 00 00 00 00 |.TEXT...|........|
|00000050| 00 00 00 00 00 04 62 00 | 00 01 1e ba 81 85 df ba |......b.|........|
|00000060| 81 85 df 00 00 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 77 86 00 00 |........|....w...|
|00000080| 23 21 2f 75 73 72 2f 62 | 69 6e 2f 65 6e 76 20 70 |#!/usr/b|in/env p|
|00000090| 79 74 68 6f 6e 0a 0a 23 | 20 54 68 69 73 20 73 63 |ython..#| This sc|
|000000a0| 72 69 70 74 20 72 65 71 | 75 69 72 65 73 20 73 6f |ript req|uires so|
|000000b0| 6d 65 20 65 64 69 74 69 | 6e 67 20 74 6f 20 77 6f |me editi|ng to wo|
|000000c0| 72 6b 2e 20 49 74 20 77 | 69 6c 6c 20 73 68 6f 77 |rk. It w|ill show|
|000000d0| 20 79 6f 75 72 20 53 45 | 54 49 40 48 6f 6d 65 0a | your SE|TI@Home.|
|000000e0| 23 20 73 74 61 74 75 73 | 2e 0a 0a 65 6d 61 69 6c |# status|...email|
|000000f0| 20 3d 20 27 68 65 6e 72 | 69 6b 40 6d 61 63 6e 79 | = 'henr|ik@macny|
|00000100| 74 74 2e 63 6f 6d 27 20 | 09 09 09 09 09 23 20 50 |tt.com' |.....# P|
|00000110| 75 74 20 79 6f 75 72 20 | 65 6d 61 69 6c 20 62 65 |ut your |email be|
|00000120| 74 77 65 65 6e 20 74 68 | 65 20 71 75 6f 74 65 73 |tween th|e quotes|
|00000130| 0a 73 74 61 74 65 70 61 | 74 68 73 20 3d 20 5b 27 |.statepa|ths = ['|
|00000140| 2f 70 61 74 68 2f 74 6f | 2f 31 2f 73 74 61 74 65 |/path/to|/1/state|
|00000150| 2e 73 61 68 27 2c 5d 09 | 09 23 20 50 75 74 20 74 |.sah',].|.# Put t|
|00000160| 68 65 20 70 61 74 68 20 | 74 6f 20 79 6f 75 72 20 |he path |to your |
|00000170| 73 74 61 74 65 2e 73 61 | 68 20 66 69 6c 65 20 68 |state.sa|h file h|
|00000180| 65 72 65 2e 0a 09 09 09 | 09 09 09 23 20 49 66 20 |ere.....|...# If |
|00000190| 79 6f 75 20 68 61 76 65 | 20 6d 6f 72 65 20 74 68 |you have| more th|
|000001a0| 61 6e 20 6f 6e 65 20 73 | 74 61 74 65 20 66 69 6c |an one s|tate fil|
|000001b0| 65 73 0a 09 09 09 09 09 | 09 09 23 20 74 68 61 74 |es......|..# that|
|000001c0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 | you wou|ld like |
|000001d0| 74 6f 20 64 69 73 70 6c | 61 79 2c 20 74 68 65 6e |to displ|ay, then|
|000001e0| 0a 09 09 09 09 09 09 09 | 23 20 73 65 70 61 72 61 |........|# separa|
|000001f0| 74 65 20 74 68 65 6d 20 | 6c 69 6b 65 20 74 68 69 |te them |like thi|
|00000200| 73 3a 0a 23 20 73 74 61 | 74 65 70 61 74 68 73 20 |s:.# sta|tepaths |
|00000210| 3d 20 28 20 27 2f 70 61 | 74 68 2f 74 6f 2f 31 2f |= ( '/pa|th/to/1/|
|00000220| 73 74 61 74 65 2e 73 61 | 68 27 2c 20 27 2f 70 61 |state.sa|h', '/pa|
|00000230| 74 68 2f 74 6f 2f 32 2f | 73 74 61 74 65 2e 73 61 |th/to/2/|state.sa|
|00000240| 68 27 20 29 0a 0a 64 65 | 66 20 61 64 64 5f 70 72 |h' )..de|f add_pr|
|00000250| 6f 70 5f 74 6f 5f 64 69 | 63 74 28 64 69 63 74 2c |op_to_di|ct(dict,|
|00000260| 70 72 6f 70 29 3a 0a 09 | 70 61 72 74 73 20 3d 20 |prop):..|parts = |
|00000270| 70 72 6f 70 2e 73 70 6c | 69 74 28 27 3d 27 29 0a |prop.spl|it('=').|
|00000280| 09 64 69 63 74 5b 73 74 | 72 28 70 61 72 74 73 5b |.dict[st|r(parts[|
|00000290| 30 5d 29 5d 20 3d 20 70 | 61 72 74 73 5b 31 5d 2e |0])] = p|arts[1].|
|000002a0| 73 74 72 69 70 28 29 0a | 09 72 65 74 75 72 6e 20 |strip().|.return |
|000002b0| 64 69 63 74 0a 0a 69 6d | 70 6f 72 74 20 75 72 6c |dict..im|port url|
|000002c0| 6c 69 62 2c 20 6f 73 2e | 70 61 74 68 2c 20 73 74 |lib, os.|path, st|
|000002d0| 72 69 6e 67 0a 0a 73 74 | 61 74 65 70 61 74 68 73 |ring..st|atepaths|
|000002e0| 20 3d 20 5b 6f 73 2e 70 | 61 74 68 2e 65 78 69 73 | = [os.p|ath.exis|
|000002f0| 74 73 28 70 61 74 68 29 | 20 66 6f 72 20 70 61 74 |ts(path)| for pat|
|00000300| 68 20 69 6e 20 73 74 61 | 74 65 70 61 74 68 73 5d |h in sta|tepaths]|
|00000310| 3b 0a 0a 70 72 6f 70 73 | 20 3d 20 5b 72 65 64 75 |;..props| = [redu|
|00000320| 63 65 28 20 61 64 64 5f | 70 72 6f 70 5f 74 6f 5f |ce( add_|prop_to_|
|00000330| 64 69 63 74 2c 20 6f 70 | 65 6e 28 6f 73 2e 70 61 |dict, op|en(os.pa|
|00000340| 74 68 2e 65 78 70 61 6e | 64 75 73 65 72 28 73 74 |th.expan|duser(st|
|00000350| 61 74 65 70 61 74 68 29 | 29 2e 72 65 61 64 6c 69 |atepath)|).readli|
|00000360| 6e 65 73 28 29 2c 20 7b | 7d 20 29 20 0a 09 09 66 |nes(), {|} ) ...f|
|00000370| 6f 72 20 73 74 61 74 65 | 70 61 74 68 20 69 6e 20 |or state|path in |
|00000380| 73 74 61 74 65 70 61 74 | 68 73 5d 0a 70 65 72 63 |statepat|hs].perc|
|00000390| 65 6e 74 73 20 3d 20 5b | 73 74 72 28 69 6e 74 28 |ents = [|str(int(|
|000003a0| 66 6c 6f 61 74 28 70 72 | 6f 70 5b 27 70 72 6f 67 |float(pr|op['prog|
|000003b0| 27 5d 5b 3a 36 5d 29 20 | 2a 20 31 30 30 29 29 2b |'][:6]) |* 100))+|
|000003c0| 27 25 27 20 66 6f 72 20 | 70 72 6f 70 20 69 6e 20 |'%' for |prop in |
|000003d0| 70 72 6f 70 73 5d 3b 0a | 0a 78 6d 6c 66 69 6c 65 |props];.|.xmlfile|
|000003e0| 20 3d 20 75 72 6c 6c 69 | 62 2e 75 72 6c 6f 70 65 | = urlli|b.urlope|
|000003f0| 6e 28 27 68 74 74 70 3a | 2f 2f 73 65 74 69 61 74 |n('http:|//setiat|
|00000400| 68 6f 6d 65 2e 73 73 6c | 2e 62 65 72 6b 65 6c 65 |home.ssl|.berkele|
|00000410| 79 2e 65 64 75 2f 66 63 | 67 69 2d 62 69 6e 2f 66 |y.edu/fc|gi-bin/f|
|00000420| 63 67 69 3f 63 6d 64 3d | 75 73 65 72 5f 78 6d 6c |cgi?cmd=|user_xml|
|00000430| 26 65 6d 61 69 6c 3d 27 | 20 2b 20 65 6d 61 69 6c |&email='| + email|
|00000440| 29 0a 78 6d 6c 64 61 74 | 61 20 3d 20 78 6d 6c 66 |).xmldat|a = xmlf|
|00000450| 69 6c 65 2e 72 65 61 64 | 28 29 0a 0a 6e 75 6d 72 |ile.read|()..numr|
|00000460| 65 73 75 6c 74 73 20 3d | 20 78 6d 6c 64 61 74 61 |esults =| xmldata|
|00000470| 2e 73 70 6c 69 74 28 27 | 3c 6e 75 6d 72 65 73 75 |.split('|<numresu|
|00000480| 6c 74 73 3e 27 29 5b 31 | 5d 2e 73 70 6c 69 74 28 |lts>')[1|].split(|
|00000490| 27 3c 2f 6e 75 6d 72 65 | 73 75 6c 74 73 3e 27 29 |'</numre|sults>')|
|000004a0| 5b 30 5d 0a 0a 70 72 69 | 6e 74 20 73 74 72 69 6e |[0]..pri|nt strin|
|000004b0| 67 2e 6a 6f 69 6e 28 70 | 65 72 63 65 6e 74 73 2c |g.join(p|ercents,|
|000004c0| 27 2c 20 27 29 20 2b 20 | 27 2c 20 27 20 2b 20 6e |', ') + |', ' + n|
|000004d0| 75 6d 72 65 73 75 6c 74 | 73 20 2b 20 27 20 57 55 |umresult|s + ' WU|
|000004e0| 73 27 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s'......|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000510| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00000520| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00000530| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+